﻿using SqlSugar;

namespace XieCan.Core.Entity
{
  public partial class AddressEntity : BaseEntity
  {
    /// <summary>
    /// 所属用户ID
    /// </summary>
    [SugarColumn(ColumnDescription = "所属用户ID")]
    public Guid UserId { get; set; }
    /// <summary>
    /// 收件人姓名
    /// </summary>
    [SugarColumn(ColumnDescription = "收件人姓名")]
    public string? Name { get; set; }
    /// <summary>
    /// 收件人手机号
    /// </summary>
    [SugarColumn(ColumnDescription = "收件人手机号")]
    public string? Phone { get; set; }
    /// <summary>
    /// 省份
    /// </summary>
    [SugarColumn(ColumnDescription = "省份")]
    public string? Province { get; set; }
    /// <summary>
    /// 城市
    /// </summary>
    [SugarColumn(ColumnDescription = "城市")]
    public string? City { get; set; }
    /// <summary>
    /// 区域
    /// </summary>
    [SugarColumn(ColumnDescription = "区域")]
    public string? Area { get; set; }
    /// <summary>
    /// 详细地址
    /// </summary>
    [SugarColumn(ColumnDescription = "详细地址")]
    public string? Detail { get; set; }
    /// <summary>
    /// 是否是默认地址
    /// </summary>
    [SugarColumn(ColumnDescription = "是否是默认地址")]
    public bool IsDefault { get; set; } = false;
  }
}
